import request from "/@/utils/request";

/**
 * 用户注册
 * @param params 要传的参数值
 * @returns 返回接口数据
 * @method lessonInfo 获取班级信息
 * @method teacherExperimentInfo 获取教师实验信息
 * @method studentExperimentInfo 获取学生实验信息
 * @method teacherGradeInfo 获取教师成绩信息
 */

 export function lessonInfo(params: any) {
    return request({
      url: "lesson/" + params,
      method: "get",
    });
  }

  export function teacherExperimentInfo(params: any) {
    return request({
      url: `experiment?teacher_id=${params}`,
      method: 'get',
    });
  }

  export function teacherGradeInfo(params: any) {
    return request({
      url: `file-teacher-grade/query?teacher_grade=-1&teacher_id=${params}`,
      method: "get",
    });
  }

  export function studentExperimentInfo(params: any) {
    return request({
      url: `experiment?lesson_id=${params}`,
      method: 'get',
    });
  }